import cn.hutool.core.util.ArrayUtil;

/**
 * @author caesar
 * @date 2025/7/2
 * @apiNote
 */
//hutool的第三方工具类的使用练习
public class hootolTest {
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5,6,7,8,9,10};
        System.out.println("arr = " + ArrayUtil.toString(arr));
        //翻转
        ArrayUtil.reverse(arr);
        System.out.println("arr = " + ArrayUtil.toString(arr));
        //求值的下标
        int target = 5;
        int index = ArrayUtil.indexOf(arr, target);
        System.out.println("arr = " + ArrayUtil.toString(arr));
        System.out.println("index = " + index);
        //
        ArrayUtil.remove(arr, index);
        System.out.println("arr = " + ArrayUtil.toString(arr));
    }
}
